#include "mcache2.h"
#include <iostream>
#include <Poco/Logger.h>
#include <Poco/ConsoleChannel.h>

using namespace mcache;
using namespace std;
using namespace Poco;

int main()
{
	Logger::root().setChannel(new ConsoleChannel(std::cout));
	Logger::root().setLevel("fatal");
	Cache2 cache;

	cache.addServer("172.16.195.82:11311");
	cout << cache.get("mcache:hello") << endl;
	cache.set("mcache:hello", "thank");
	cout << cache.get("mcache:hello") << endl;
}
